package com.springapp.mvc;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Андрей Шевцов on 19.01.14.
 */
public class User {
    private int id;
    private String name;
    private int age;
    private boolean active;
    private ArrayList<Book> books;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public ArrayList<Book> getBooks() {
        return books;
    }

    public void setBooks(ArrayList<Book> books) {
        this.books = books;
    }

//    public void setBooks(List<Book> books){
//        this.books = new ArrayList<Book>(books);
//    }
}
